<%@ Page Language="C#" MasterPageFile="~/Common/WebSiteMaster.master" AutoEventWireup="true" CodeBehind="C_Strings.aspx.cs" Inherits="ScottCateAjax2008.Lesson06.C_Strings" Title="String Extensions" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <asp:ScriptManager id="SM1" runat="server">
        <Scripts>
            <asp:ScriptReference path="C_Strings.aspx.js" />
        </Scripts>
    </asp:ScriptManager>

    Start with <b>ABCDEFG</b> with four leading and trailing spaces.<br />

    <input type="button" value="Show Test Value" onclick="showTest()" />Alert value<br />
    <input type="button" value="Starts With" onclick="startsWithTest()" />test.startsWith('     ')<br />
    <input type="button" value="Ends With" onclick="endsWithTest()" />test.endsWith('DEFG')<br />
    <input type="button" value="Trim Test" onclick="trimTest()" />test.trim()<br />
    <input type="button" value="Trim Start" onclick="trimStartTest()" />test.trimStart()<br />
    <input type="button" value="Trim End" onclick="trimEndTest()" />test.trimEnd()<br />
    <input type="button" value="Format" onclick="formatTest()" />String.format(mask, test, test.trim())
    
</asp:Content>
